package com.example.demo.pojo;

import java.time.LocalDate;

public class Borrow {
    private Integer id;             // 借阅编号
    private Integer userId;         // 学生编号
    private Integer bookId;         // 图书编号
    private LocalDate borrowTime;        // 借阅时间

    private Integer status;         // 借阅状态（0-审核，1-通过，2-拒绝，3-已还）
    private Integer verifyUserId;   // 审核管理员id
    private LocalDate returnTime;        // 归还时间
    private LocalDate dueTime;           // 应还时间
    private Integer isOverdue;      // 是否逾期（0-否 1-是）
    private LocalDate applyDate;      //借阅时间

    @Override
    public String toString() {
        return "Borrow{" +
                "id=" + id +
                ", userId=" + userId +
                ", bookId=" + bookId +
                ", borrowTime=" + borrowTime +
                ", status=" + status +
                ", verifyUserId=" + verifyUserId +
                ", returnTime=" + returnTime +
                ", dueTime=" + dueTime +
                ", isOverdue=" + isOverdue +
                ", applyDate=" + applyDate +
                '}';
    }

    public LocalDate getApplyDate() {
        return applyDate;
    }

    public void setApplyDate(LocalDate applyDate) {
        this.applyDate = applyDate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public LocalDate getBorrowTime() {
        return borrowTime;
    }

    public void setBorrowTime(LocalDate borrowTime) {
        this.borrowTime = borrowTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getVerifyUserId() {
        return verifyUserId;
    }

    public void setVerifyUserId(Integer verifyUserId) {
        this.verifyUserId = verifyUserId;
    }

    public LocalDate getReturnTime() {
        return returnTime;
    }

    public void setReturnTime(LocalDate returnTime) {
        this.returnTime = returnTime;
    }

    public LocalDate getDueTime() {
        return dueTime;
    }

    public void setDueTime(LocalDate dueTime) {
        this.dueTime = dueTime;
    }

    public Integer getIsOverdue() {
        return isOverdue;
    }

    public void setIsOverdue(Integer isOverdue) {
        this.isOverdue = isOverdue;
    }
}
